import _fetch from '@/Utils/Fetch'
import {
  mallManagement
} from '@/Utils/Urls'

export const searchBookName = (data) => {
  return _fetch({
    url: mallManagement.searchBook + `/${data}`,
    type: 'post'
  })
}

export const getBookDetail = (id) => {
  return _fetch({
    url: mallManagement.getBookDetail + `/${id}`,
    type: 'post',
    isJson: true
  })
}
export const getOrderDetail = (data) => {
  return _fetch({
    url: mallManagement.searchOrder,
    data: {
      outTradeNo: data
    }
  })
}